import request from "@/utils/request";

/* 知识库 列表获取 列表查询*/
export function queryAPPListRequest(data) {
  return request({
    url: "/management-admin/knowledgeBase/queryByPage",
    method: "post",
    data,
  });
}
export function queryAPPListRequest2(data) {
  return request({
    url: "/management-admin/knowledgeBase/auditQueryByPage",
    method: "post",
    data,
  });
}

//知识库 上传 保存接口
export function saveKnowledgeRequest(data) {
  return request({
    url: "/management-admin/knowledgeBase/save",
    method: "post",
    headers: {
      timeout: 500000,
    },
    data,
  });
}

//知识库 删除
export function deleteKnowledgeRequest(id) {
  return request({
    url: "/management-admin/knowledgeBase/delete?id=" + id,
    method: "get",
  });
}

//知识库 修改状态接口
export function updateKnowledgeStatusRequest(data) {
  return request({
    url: "/management-admin/knowledgeBase/edit",
    method: "post",
    headers: {
      timeout: 500000,
    },
    data,
  });
}
